From: Jasper St. Pierre Date: Thu, 27 Oct 2011 21:41:06 +0000 (-0400) Subject: shellDBus: Lock down Eval() to be a development tool only X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7332 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=85cd189a69524fb38bbc2d1f015f66b53d5b7e92;p=gnome-shell.git shellDBus: Lock down Eval() to be a development tool only https://bugzilla.gnome.org/show_bug.cgi?id=662891 --- diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index 1fcfb0cf0..4f81c53a9 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -93,6 +93,9 @@ GnomeShell.prototype = { * */ Eval: function(code) { + if (!global.settings.get_boolean('development-tools')) + return [false, null]; + let returnValue; let success; try {